<html>
<head><meta charset="utf-8"><title>bootstrap: Mode::ToolStd vs ToolTest vs ToolRustc · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html">bootstrap: Mode::ToolStd vs ToolTest vs ToolRustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="172103592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172103592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172103592">(Jul 31 2019 at 06:56)</a>:</h4>
<p>bootstrap defines a bunch of "modes to invoke cargo", and three of them are collected under a single doccomment: <code>ToolStd</code>, <code>ToolTest</code>, <code>ToolRustc</code>. Is there any difference between them? If yes, would be nice if that could be documented; if no, what about just removing two of them?<br>
Cc <span class="user-mention" data-user-id="116122">@simulacrum</span></p>



<a name="172103672"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172103672" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172103672">(Jul 31 2019 at 06:58)</a>:</h4>
<p>In particular it seems odd that the tool tests (at least for miri and rustfmt which I checked) use <code>ToolRustc</code> as opposed to <code>ToolTest</code></p>



<a name="172103754"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172103754" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172103754">(Jul 31 2019 at 07:00)</a>:</h4>
<p><code>ToolTest</code> seems to be used only once, in <code>TestLink::run</code> (which I think is about libtest?)</p>



<a name="172103780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172103780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172103780">(Jul 31 2019 at 07:01)</a>:</h4>
<p>(and that's for running the <code>"clean"</code> command... weird)</p>



<a name="172116759"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172116759" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172116759">(Jul 31 2019 at 10:53)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> they're used to determine dependencies and when to delete miri so it can be rebuilt</p>



<a name="172116769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172116769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172116769">(Jul 31 2019 at 10:53)</a>:</h4>
<p>So because miri needs e.g. librustc_mir it's a ToolRustc</p>



<a name="172134686"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172134686" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172134686">(Jul 31 2019 at 14:56)</a>:</h4>
<p>okay... so the three different modes correspond to needing different amounts of other stuff?</p>



<a name="172134740"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/bootstrap%3A%20Mode%3A%3AToolStd%20vs%20ToolTest%20vs%20ToolRustc/near/172134740" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/bootstrap.3A.20Mode.3A.3AToolStd.20vs.20ToolTest.20vs.20ToolRustc.html#172134740">(Jul 31 2019 at 14:56)</a>:</h4>
<p>could you add comments saying what it is that they each reflect in terms of dependencies (or I could also add that based on what you tell me, not sure if that would be any simpler^^)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>